setup AtCoder
https://gyazo.com/ee5a88af4015e74680fc4f5c203c090e
GitHub.iconKiichiSugihara/at-coder-js: use JS for AtCoder
2020春 Node.js12,TypeScript3.8に変わった
Babelでごちゃごちゃする必要なくなった。
TypeScriptv3.8版用意した
GitHub.iconKiichiSugihara/atcoder-ts
課題
JavaScriptが競技プログラミングを行う際、ツラミが多い
ES2015 ES6使えない
標準入出力設定
transpileするので、ローカルでテスト駆動開発 TDDしたい
いい自動ツールない
必要タスク
command
✅変数
問題名
URL
✅node setup
1. mkdir 問題名
2. cd 問題名
3. oj d URL
4. cp ./templates/index.js ./問題名/index.js
とりあえず、問題名、urlは、環境変数 で指定にしとく?
以下の構成を作成
構成
問題名Dir
test
sample....
oj d https://atcoder.jp/contests/agc001/tasks/agc001_a などでつくる
index.js
templates/index.jsからコピる
compile.js
index.jsをBabelでcompileしたもの
問題思考
webpack
提出
あったら嬉しい
保存で自動compile
さらに、自動テスト
対話式にしたい
Inquirer.js
prompts
使用技術
npm scripts
shelljs
困りごと
testの自動コマンドにおけるテスト結果見えない問題 · Issue #6 · KiichiSugihara/atcoder-ts
参考
atcoder-cli チュートリアル | わたしろぐ
Welcome to online-judge-tools’s documentation! — online-judge-tools documentation
A: Welcome to AtCoder - Language Test | AtCoder
提出 #8953379 - AtCoder Beginner Contest 086
AtCoder に登録したら解くべき精選過去問 10 問を JavaScript で解いてみた - Qiita
#Idea